<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
         contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">+
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>个人中心 - 徐二组体育馆网上系统</title>
    <link href=" ${pageContext.request.contextPath}/static/css/nav.css" rel="stylesheet" type="text/css" />
    <script src="${pageContext.request.contextPath}/static/js/nav.js" type="text/javascript"></script>
    <script src="https://code.jquery.com/jquery-2.1.0.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/focus.js" type="text/javascript"></script>
    <link href=" ${pageContext.request.contextPath}/static/css/common.css" rel="stylesheet" type="text/css" />
    <link href=" ${pageContext.request.contextPath}/static/css/usercenter.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript">

      function remind(frm) {
        var cid = frm.cid.value;
        var cname = frm.cname.value;
        var userMoney = frm.userMoney.value;
        var c = 10-cid;
        var realCost = userMoney*(c/10);
        return confirm("您的会员等级为" + cname + "享受" +c+"折优惠"+"实付"+realCost+ "升级vip将获得更多优惠，确认直接充值？");
      }
    </script>
</head>

<body>
<%@ include file="../header.jsp" %>
<div id="main">
    <div id="row_1">
        <div>
            <c:forEach items="${list}" var="list">
                <form action="${pageContext.request.contextPath}/user/recharge" onsubmit="return remind(this)" method="post">
                    <input type="hidden" value="${list.CID}" id="cid" name="cid"/>
                    <input type="hidden" value="${list.CNAME}" id="cname" name="cname"/>
                    <table id="user-info-list" cellspacing="2px">
                        <tr>
                            <th scope="row">账户余额：</th>
                            <td>${list.USERMONEY}</td>
                        </tr>
                        <tr>
                            <th scope="row"></th>
                            <td></td>
                        </tr>
                        <tr>
                            <th scope="row">会员等级：</th>
                            <td>${list.CNAME}</td>
                        </tr>
                        <tr>
                            <th scope="row"></th>
                            <td></td>
                        </tr>
                        <tr>
                            <th scope="row">充值金额：</th>
                            <td id="userMoney">
                                <label>
                                    <input type="radio" name="userMoney" value="88">
                                </label>88
                                <label>
                                    <input type="radio" name="userMoney" value="288">
                                </label>288
                                <label>
                                    <input type="radio" name="userMoney" value="688">
                                </label>688
                                <label>
                                    <input type="radio" name="userMoney" value="888">
                                </label>888
                            </td>
                        </tr>
                        <tr>
                            <th scope="row"></th>
                            <td></td>
                        </tr>
                        <br>
                    </table><br/><br/>
                    <input name="" type="submit" value="确认充值" style="margin-left: 440px;margin-right: 440px"/>
            </c:forEach>
        </div>

    </div>
</div>
<script>
  var def = "1";
</script>
<%@ include file="../footer.jsp" %>
</body>
</html>
